package com.viethp.mt.objects;

import org.ksoap2.serialization.SoapObject;

public class UpdatePaymentResponse {
	private static final String ERROR_CODE = "ErrorCode";
	private ErrorCode errorCode;

	public UpdatePaymentResponse(SoapObject result) {
		if (result != null && result.hasProperty(ERROR_CODE)) {
			this.errorCode = new ErrorCode(
					(SoapObject) result.getProperty(ERROR_CODE));
		} else {
			this.errorCode = null;
		}
	}

	public ErrorCode getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(ErrorCode errorCode) {
		this.errorCode = errorCode;
	}
}
